import request from '@/router/axios';

// 补液车
export const getPage = (page, params) => {
  return request({
    url: '/api/uic-system/fillstoragecar/page',
    method: 'get',
    params: {
      ...page,
      ...params,
    }
  })
}

export const submit = (form) => {
  return request({
    url: '/api/uic-system/fillstoragecar/submit',
    method: 'post',
    data: {
      ...form
    }
  })
}

export const remove = (id) => {
  return request({
    url: '/api/uic-system/fillstoragecar/remove',
    method: 'post',
    params: {
      ids: id
    }
  })
}

// 更换司机
export const changeCarUser = (carId, userId) => {
  return request({
    url: `/api/uic-system/fillstoragecar/changeCarUser/${carId}/${userId}`,
    method: 'post',
  })
}
